import {createAPI} from '../../../request.js'

const BASE_URL =  '/api'

/* 查询分页列表数据 */
export const findListByPage = data => createAPI(BASE_URL+'/xtgl/xtcsgl/findListByPage', 'get', data)

/* 查询单条数据 */
export const findOne = data => createAPI(BASE_URL+'/xtgl/xtcsgl/findOne', 'get', data)

/* 新增 */
export const add = data => createAPI(BASE_URL+'/xtgl/xtcsgl/add', 'post', data)

/* 修改 */
export const update = data => createAPI(BASE_URL+'/xtgl/xtcsgl/update', 'post', data)

/* 删除 */
export const del = data => createAPI(BASE_URL+'/xtgl/xtcsgl/delete', 'post', data)

/* 上传 */
export const upload = data => createFormAPI(BASE_URL+'/xtgl/xtcsgl/add', 'post', data)